home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / ftn / abs.z / abs
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. AAAABBBBSSSS((((3333FFFF))))                                                                AAAABBBBSSSS((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      abs, iabs, dabs, qabs, cabs, zabs, cqabs, iiabs, jiabs - FORTRAN absolute
  10.      value
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      iiiinnnntttteeeeggggeeeerrrr iiii1111,,,, iiii2222
  14.      rrrreeeeaaaallll rrrr1111,,,, rrrr2222
  15.      ddddoooouuuubbbblllleeee pppprrrreeeecccciiiissssiiiioooonnnn ddddpppp1111,,,, ddddpppp2222
  16.      rrrreeeeaaaallll****11116666 qqqqpppp1111,,,, qqqqpppp2222
  17.      ccccoooommmmpppplllleeeexxxx ccccxxxx1111,,,, ccccxxxx2222
  18.      ddddoooouuuubbbblllleeee ccccoooommmmpppplllleeeexxxx ddddxxxx1111,,,, ddddxxxx2222
  19.      ccccoooommmmpppplllleeeexxxx****33332222 qqqqxxxx1111,,,, qqqqxxxx2222
  20.      iiiinnnntttteeeeggggeeeerrrr****2222 iiiiiiii1111,,,, iiiiiiii2222
  21.      iiiinnnntttteeeeggggeeeerrrr****4444 jjjjiiii1111,,,, jjjjiiii2222
  22.  
  23.      rrrr2222 ==== aaaabbbbssss((((rrrr1111))))
  24.  
  25.      iiii2222 ==== iiiiaaaabbbbssss((((iiii1111))))
  26.      iiii2222 ==== aaaabbbbssss((((iiii1111))))
  27.  
  28.      ddddpppp2222 ==== ddddaaaabbbbssss((((ddddpppp1111))))
  29.      ddddpppp2222 ==== aaaabbbbssss((((ddddpppp1111))))
  30.  
  31.      qqqqpppp2222 ==== qqqqaaaabbbbssss((((qqqqpppp1111))))
  32.      qqqqpppp2222 ==== aaaabbbbssss((((qqqqpppp1111))))
  33.  
  34.      ccccxxxx2222 ==== ccccaaaabbbbssss((((ccccxxxx1111))))
  35.      ccccxxxx2222 ==== aaaabbbbssss((((ccccxxxx1111))))
  36.  
  37.      ddddxxxx2222 ==== zzzzaaaabbbbssss((((ddddxxxx1111))))
  38.      ddddxxxx2222 ==== aaaabbbbssss((((ddddxxxx1111))))
  39.  
  40.      qqqqxxxx2222 ==== ccccqqqqaaaabbbbssss((((qqqqxxxx1111))))
  41.      qqqqxxxx2222 ==== aaaabbbbssss((((qqqqxxxx1111))))
  42.  
  43.      iiiiiiii2222 ==== iiiiiiiiaaaabbbbssss((((iiiiiiii1111))))
  44.      iiiiiiii2222 ==== aaaabbbbssss((((iiiiiiii1111))))
  45.  
  46.      jjjjiiii2222 ==== jjjjiiiiaaaabbbbssss((((jjjjiiii1111))))
  47.      jjjjiiii2222 ==== aaaabbbbssss((((jjjjiiii1111))))
  48.  
  49. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  50.      _a_b_s is the family of absolute value functions.  _i_a_b_s returns the integer
  51.      absolute value of its integer argument.  It accepts either integer*2 or
  52.      integer*4 arguments and the result is the same type.  _d_a_b_s returns the
  53.      double-precision absolute value of its double-precision argument.  _q_a_b_s
  54.      returns the real*16 absolute value of its real*16 argument.  _c_a_b_s returns
  55.      the complex absolute value of its complex argument.  _z_a_b_s returns the
  56.      double-complex absolute value of its double-complex argument.  _c_q_a_b_s
  57.      returns the complex*32 absolute value of its complex*32 argument.  _i_i_a_b_s
  58.      returns the integer*2 absolute value of its integer*2 argument.  _j_i_a_b_s
  59.      returns the integer*4 absolute value of its integer*4 argument.  The
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. AAAABBBBSSSS((((3333FFFF))))                                                                AAAABBBBSSSS((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      generic form _a_b_s returns the type of its argument.
  75.  
  76. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  77.      floor(3M).
  78.  
  79. CCCCAAAAVVVVEEEEAAAATTTT
  80.      In two's-complement integer (integer*2 or integer*4) representation the
  81.      absolute value of the negative integer with largest magnitude is
  82.      undefined.  Some implementations trap this error, but others simply
  83.      ignore it.
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.